html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  font-size: 16px;
}

:root {
  --primary-color: #1e90ff;
  --primary-color-2: #74b9ff;
  --primary-color-3: #badcff;
  --info-color: #1e90ff;
  --scrollbar-color: #929292;
  --border-color: #fafafa;
  --danger-color: #ff6348;
  --success-color: #2ed573;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ellipsis-l2 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ellipsis-l3 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.custom-code-modal .ant-modal-body {
  padding: 0;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.ant-btn.property-edit-btn {
  line-height: 1;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);

  &:active {
    color: var(--primary-color);
    border-color: var(--primary-color-2);

    .anticon.elysia-icon {
      color: var(--primary-color) !important;
    }
  }

  &:hover {
    color: var(--primary-color);
    border-color: var(--primary-color-2);

    .anticon.elysia-icon {
      color: var(--primary-color) !important;
    }
  }
}

// 移动端媒体查询

@media screen and (max-width: 768px) {
  .elysia-panel {
    width: 100vw !important;
    position: absolute;
    z-index: 101;
  }

  .elysia-main {
    width: 100vw;
  }

  .main-wrapper {
    width: 100vw !important;
  }

  .setup-inside {

    position: absolute;
    z-index: 101;

    .elysia-setting {
      width: 100vw !important;
    }
  }

  .page-view {
    position: fixed !important;
    bottom: 4px;
  }


  .anticon.anticon-pushpin {
    display: none !important;
  }
}

.float-icon {
  &-left {
    left: -1px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  &-rigth {
    right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;

    .anticon {
      transition: transform 0.3s;
    }

    &:hover {
      background-color: var(--primary-color-3);

      .anticon {
        transform: rotate(180deg);
      }
    }
  }

  position: fixed;
  z-index: 100;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: 1px solid var(--primary-color);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;


  .anticon {
    font-size: 28px;
    color: var(--primary-color);
  }
}